<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ taglib uri = "http://java.sun.com/jsp/jstl/core" prefix = "c"%>
<%@ taglib prefix="di" uri="http://displaytag.sf.net"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Temple</title>
</head>
<body>

<%
String ctx = request.getContextPath()+"/city/savecity";
%>


	<form:form id="cityForm" method="POST" modelAttribute="citydata" action="<%=ctx %>" >
		<table align="center">

			<tr>
				<td>City Name</td>
				<td>City Description</td>
			</tr>
			<tr>
				<td><form:hidden path="cityId"/> <form:input path="cityName" size="15" /></td>

				<td><form:input path="cityDescription" size="15" /></td>
			</tr>
		</table>
		<input type="submit" value="Save City" />
	</form:form>
	
	
	
				<di:table  name="${allCities}" requestURI=""  pagesize="10"  uid="s"  export="true"  decorator="com.onlinemathuracrud.displaydecorator.CityDecorator">
				<di:caption>Showing List of All Cities</di:caption>
				<di:column title="S.No.">${s_rowNum}</di:column>
				<di:column property="cityName" title="City Name" />
				<di:column property="cityDescription" title="City Description" />
				<di:column property="editUrl" title="Edit City"/>
				<di:column property="deleteUrl" title="Delete City"/>
				<di:setProperty name="paging.banner.placement" value="bottom" />
				<di:setProperty name="export.pdf" value="true" />
				<di:setProperty name="export.xml" value="false" />
				</di:table>
	
	
	
</body>
</html>